package january.test_1_31;

import java.util.Scanner;

public class TestMain3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int max = 0;
        int a =  A(str);
        int b = B(str);
        int c = C(str);
        int d = D(str);
        if(b != 0 && c != 0) {
            max = Math.max(max,2);
        }
        if(b != 0 && c != 0 && d != 0) {
            max = Math.max(max,3);
        }
        if(b == 20 && c != 0 && d != 0) {
            max = Math.max(max,5);
        }
        int h = a+b+c+d+max;
        if(h >= 90) {
            System.out.println("VERY_SECURE");
            return;
        }
        if(h >= 80) {
            System.out.println("SECURE");
            return;
        }
        if(h >= 70) {
            System.out.println("VERY_STRONG");
            return;
        }
        if(h >= 60) {
            System.out.println("STRONG");
            return;
        }
        if(h >= 50) {
            System.out.println("AVERAGE");
            return;
        }
        if(h >= 40) {
            System.out.println("WEAK");
            return;
        }
        System.out.println("VERY_WEAK");
    }
    public static int A(String str) {
        if(str.length() <= 4) {
            return 5;
        }
        if(str.length() <= 7) {
            return 10;
        }
        return 25;
    }
    public static int B(String str) {
        int big = 0;
        int small = 0;
        for(int i = 0; i < str.length(); i++) {
            if(str.charAt(i) <= 'z' && str.charAt(i) >= 'a') {
                small = 1;
            }
            if(str.charAt(i) <= 'Z' && str.charAt(i) >= 'A') {
                big = 1;
            }
        }
        if (big == 1 && small == 1) {
            return 20;
        }
        if(big + small == 1) {
            return 10;
        }
        return 0;
    }
    public static int C(String str) {
        int tmp = 0;
        for(int i = 0; i < str.length(); i++) {
            if( str.charAt(i) > '0' && str.charAt(i) < '9') {
                tmp++;
            }
        }
        if(tmp > 1) {
            return 20;
        }
        if(tmp == 1) {
            return 10;
        }
        return 0;
    }
    public static int D(String str) {
        int tmp = 0;
        for (int i = 0; i < str.length(); i++) {
            if((int)str.charAt(i) >= 0x21 && (int)str.charAt(i) <= 0x2F) {
                tmp++;
            }
            if((int)str.charAt(i) >= 0x3A && (int)str.charAt(i) <= 0x40) {
                tmp++;
            }
            if((int)str.charAt(i) >= 0x5B && (int)str.charAt(i) <= 0x60) {
                tmp++;
            }
            if((int)str.charAt(i) >= 0x7B && (int)str.charAt(i) <= 0x7E) {
                tmp++;
            }
        }
        if(tmp > 1) {
            return 20;
        }
        if(tmp == 1) {
            return 10;
        }
        return 0;
    }
}
